#include <iostream>
int main()
{
    int* ptr=new int(42);
    std::cout<<*ptr<<std::endl;
    delete ptr;

    int* arr=new int[10];
    arr[0]=1;
    delete[] arr;
    return 0;
}